]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
quickSettings: Bind menu arrow's reactivity to parent
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 5 Aug 2022 20:01:30 +0000 (22:01 +0200)
committerMarge Bot <marge-bot@gnome.org>
Sat, 6 Aug 2022 21:27:15 +0000 (21:27 +0000)
When a QuickMenuToggle is made insensitive, then it is unexpected
that its menu can still be opened despite the appearance.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2405>

js/ui/quickSettings.js

index 889833a73fd2216b41fb112dcafcd82e68929f5c..50dbf6f3516dbf3745640ee742e37d2054e1ace2 100644 (file)
@@ -123,7 +123,10 @@ var QuickMenuToggle = GObject.registerClass({
 
         this.bind_property('menu-enabled',
             this._menuButton, 'visible',
-            GObject.BindingFlags.DEFAULT);
+            GObject.BindingFlags.SYNC_CREATE);
+        this.bind_property('reactive',
+            this._menuButton, 'reactive',
+            GObject.BindingFlags.SYNC_CREATE);
         this._menuButton.connect('clicked', () => this.menu.open());
         this.connect('popup-menu', () => {
             if (this.menuEnabled)